﻿@page
@{ Layout = "_Layout"; }

<el-card>
    <div slot="header" class="clearfix">
        <span>试卷导出</span>
        <el-button style="float: right;padding:3px 0;" type="text" v-on:click="utils.closeLayerSelf"><i class="el-icon-close"></i></el-button>
    </div>
    <el-scrollbar class="scrollbar" :style="{ height: ($(window).innerHeight()-180) + 'px' }">
        <el-result icon="success" title="操作成功" v-if="url">
            <template slot="extra">
                <el-button type="primary" plain v-on:click="btnDownloadClick" icon="el-icon-download" :size="euiSize">点击下载</el-button>
            </template>
        </el-result>
        <div v-else>
            <el-form :inline="true">
                <el-form-item label="">
                    <el-checkbox v-model="withAnswer">包含正确答案</el-checkbox>
                </el-form-item>
                <el-form-item>
                    <el-button type="primary" icon="el-icon-download" :size="euiSize" v-on:click="btnExportClick">开始导出</el-button>
                </el-form-item>
            </el-form>
        </div>
    </el-scrollbar>
</el-card>
<el-row align="center" style="margin-top:18px;">
    <el-col :span="24" align="center">
        <el-button icon="el-icon-close" :size="euiSize" v-on:click="utils.closeLayerSelf">关 闭</el-button>
    </el-col>
</el-row>
@section Scripts{
    <script src="/sitefiles/assets/js/admin/common/examPaperExportLayer.js" type="text/javascript"></script>
}
